package com.css.fxfzypg.modules.similitudeAnalyse.utils;

import com.css.fxfzypg.modules.similitudeAnalyse.consts.AreaConsts;

import java.util.Arrays;

/**
 * @author y1fan
 * @create 2022-09-01 15:52
 */

public class ListUtil {

    //判断一个字段是否在数组中存在
    public static boolean useList(String[] arr,String targetValue){
        return Arrays.asList(arr).contains(targetValue);
    }

    public static void main(String[] args) {
        boolean a = useList(AreaConsts.EAST, "河北");
        System.out.println(a);
    }
}
